package com.aliyun.oss.utils;

import com.aliyun.oss.OSSClient;
import com.aliyun.oss.configure.Configure;

public class OSSClientFactory {
	
	private OSSClientFactory() {
	}
	
	private static class OSSClientHolder {
		public static OSSClient ossClient = new OSSClient(Configure.getEndpoint(), Configure.getAccessKeyId(), Configure.getAccessKeySecret());
	}
	
	public static OSSClient getOSSClient() {
		return OSSClientHolder.ossClient;
	}
}
